from django.db import models

# Create your models here.
class Student(models.Model):
    SEX_CHOICES = (
        (0,'女'),(1,'男')
    )
    name = models.CharField(max_length=30,verbose_name='姓名')
    age = models.IntegerField(verbose_name='年龄',null=True,blank=True)
    sex = models.IntegerField(verbose_name='性别',null=True,blank=True,choices=SEX_CHOICES)
    create_time = models.DateTimeField(verbose_name='创建时间',auto_now_add=True)
    update_time = models.DateTimeField(verbose_name='修改时间',auto_now=True)
    is_delete = models.BooleanField(verbose_name='逻辑删除',default=False)